package com.huangpuweb.api.model;


import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class LxmElevatorPunishUnitRowMapper  implements RowMapper<LxmElevatorPunishUnit> {
    @Override
    public LxmElevatorPunishUnit mapRow(ResultSet resultSet, int i) throws SQLException {
        LxmElevatorPunishUnit lxmElevatorPunishUnit=new LxmElevatorPunishUnit();
        lxmElevatorPunishUnit.setId(resultSet.getString("id"));
        lxmElevatorPunishUnit.setEvent_source(resultSet.getString("event_source"));
        lxmElevatorPunishUnit.setEvent_date(resultSet.getString("event_date"));
        lxmElevatorPunishUnit.setUnit_name(resultSet.getString("unit_name"));
        lxmElevatorPunishUnit.setUnit_adress(resultSet.getString("unit_adress"));
        lxmElevatorPunishUnit.setName(resultSet.getString("name"));
        lxmElevatorPunishUnit.setTel(resultSet.getString("tel"));
        lxmElevatorPunishUnit.setViolation_fact(resultSet.getString("violation_fact"));
        lxmElevatorPunishUnit.setViolation_money(resultSet.getString("violation_money"));
        lxmElevatorPunishUnit.setPenalty(resultSet.getString("penalty"));
        lxmElevatorPunishUnit.setAdd_penalty(resultSet.getString("add_penalty"));
        lxmElevatorPunishUnit.setTotal(resultSet.getString("total"));
        lxmElevatorPunishUnit.setGoods_number(resultSet.getString("goods_number"));
        lxmElevatorPunishUnit.setPenalty_date(resultSet.getString("penalty_date"));
        lxmElevatorPunishUnit.setSettle_date(resultSet.getString("settle_date"));
        return lxmElevatorPunishUnit;
    }
}
